package org.javapicalc;
import java.util.Dictionary;
import java.util.Hashtable;

import org.deuce.*;

public class Channel{
	@SuppressWarnings("rawtypes")
	public Dictionary msg = new Hashtable();
	public boolean ready = true;
//	private T Message1;
//	private S Message2;
	@Atomic
	public void send(@SuppressWarnings("rawtypes") Dictionary message){
		message = msg;
		ready = false;
	}
	@Atomic
	public void receive(@SuppressWarnings("rawtypes") Dictionary message){
		msg = message;
		ready = true;
	}
}